//
//  MJMsgCell.m
//  WeCahtQQLogin
//
//  Created by HappyMilk 02 on 2017/2/8.
//  Copyright © 2017年 HappyMilk 02. All rights reserved.
//

#import "MJMsgCell.h"

@implementation MJMsgCell

- (void)createCellByIndexPath:(NSIndexPath *)indexPath andUser:(MJUserModel *)userModel{
    if (indexPath.section == 0) {
        if (indexPath.row == 1){
            _label_title.text = @"昵称";
            _label_detiell.text = userModel.name;
        }else if (indexPath.row == 2){
            _label_title.text = @"手机号";
            _label_detiell.text = userModel.phoneNum;
        }
    }else if (indexPath.section == 1){
        if (indexPath.row == 0) {
            _label_title.text = @"性别";
            _label_detiell.text = userModel.sex;
        }else if (indexPath.row == 1){
            _label_title.text = @"家乡";
            _label_detiell.text = userModel.adrs;
        }else if (indexPath.row == 2){
            _label_title.text = @"现居";
            _label_detiell.text = userModel.adrs_now;
        }else if (indexPath.row == 3){
            _label_title.text = @"生日";
            _label_detiell.text = userModel.birthday;
        }else if (indexPath.row == 4){
            _label_title.text = @"身高";
            _label_detiell.text = userModel.height;
        }else if (indexPath.row == 5){
            _label_title.text = @"学历";
            _label_detiell.text = userModel.school_record;
        }
    }else{
        if (indexPath.row == 0) {
            _label_title.text = @"个性签名";
            _label_detiell.text = userModel.enmotion;
        }else if (indexPath.row == 1){
            _label_title.text = @"情感状态";
            _label_detiell.text = userModel.signature;
        }else if (indexPath.row == 2){
            _label_title.text = @"修改密码";
            _label_detiell.text = @"";
        }
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
